using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Entities;
using BUS;
using Utility;
using System.IO;

public partial class Admin_NhanVienChiTiet : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            LoadData();
        }
    }
    private void LoadData()
    {
        try
        {
            int iD=int.Parse (Request .QueryString ["iD"].ToString ());
            lit_manv .Text =iD.ToString ();
            tbNhanVien nhanvien=tbNhanVienBUS .GetByID (iD);
            lit_tennv .Text =nhanvien .TenNV ;
            lit_taikhoan .Text =nhanvien .TaiKhoan ;
            lit_matkhau .Text =nhanvien .MatKhau ;
            lit_diachi .Text =nhanvien .DiaChi ;
            lit_dienthoai .Text =nhanvien .DienThoai ;
        }
        catch 
        {
            Response .Redirect ("~/Admin/NhanVienDanhSach");
        }
    }
}
